﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace THO7AlgoritmTimerApplication
{
    public class PixelColor
    {
        private byte r;
        private byte g;
        private byte b;

        public PixelColor(int red, int green, int blue)
        {
            r = (byte)red;
            g = (byte)green;
            b = (byte)blue;
        }

        public byte R { get { return r; } set { r = value; } }
        public byte G { get { return g; } set { g = value; } }
        public byte B { get { return b; } set { b = value; } }


        public PixelColor getGrey()
        {
            return new PixelColor(((int)(r * 0.3)), ((int)(g * 0.59)), ((int)(b * 0.11)));
        }
    }

}
